﻿using QMERP.SeedWork;

namespace QMERP.Domain.Entities
{
    /// <summary>
    /// 镜种转换单详情
    /// </summary>
    public partial class TransferLensOrderDetail : Entity
    {
        public TransferLensOrderDetail() 
        {
            TransferLensOrderDetail_LensDetails = new HashSet<TransferLensOrderDetail_LensDetail>();
        }
        /// <summary>
        /// 镜种转换单Id
        /// </summary>
        public long TransferLensOrderId { get; set; }
        /// <summary>
        /// 转出仓库Id
        /// </summary>
        public long OutWarehouseId { get; set; }
        /// <summary>
        /// 转出镜种Id
        /// </summary>
        public long OutLensId { get; set; }
        /// <summary>
        /// 转入仓库Id
        /// </summary>
        public long InWarehouseId { get; set; }
        /// <summary>
        /// 转入镜种Id
        /// </summary>
        public long InLensId { get; set; }

        /// <summary>
        /// 镜种转换单
        /// </summary>
        public virtual TransferLensOrder? TransferLensOrder { get; set; }
        /// <summary>
        /// 转出仓库
        /// </summary>
        public virtual Warehouse? OutWarehouse { get; set; }
        /// <summary>
        /// 转出镜种
        /// </summary>
        public virtual Lens? OutLens { get; set; }
        /// <summary>
        /// 转入仓库
        /// </summary>
        public virtual Warehouse? InWarehouse { get; set; }
        /// <summary>
        /// 转入镜种
        /// </summary>
        public virtual Lens? InLens { get; set; }
        /// <summary>
        /// 镜种转换单详情的镜种详情列表
        /// </summary>
        public virtual ICollection<TransferLensOrderDetail_LensDetail> TransferLensOrderDetail_LensDetails { get; set; }
    }
}
